<!doctype html>
<html  class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>后台登录</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="/web/res/css/login.css">
    <link rel="stylesheet" href="/web/res/css/xadmin.css">
    <script type="text/javascript" src="/web/res/js/jquery.min.js"></script>
    <script type="text/javascript" src="/web/res/layer/layer.js" charset="utf-8"></script>
</head>

<body style="background-color: white;">
<script type="text/javascript">
    layer.msg('您已经登录失效，请您重新登录!<span name="count" style="color: red;">3</span>秒后跳转', {
        icon: 2,
        success: function (layero, index) {
            var countElem = layero.find('span[name="count"]');
            var timer = setInterval(function () {
                var countTemp = parseInt(countElem.text()) - 1;
                countTemp === 0 ? clearInterval(timer):countElem.text(countTemp);
            }, 1000)
        }
    }, function () {
        if(top== self){
            //在顶级窗口
            window.location='/web/login.html';
        } else {
            //不在
            window.top.location='/web/login.html';
        }

    });

    // layer.msg('您已经登录失效，请您重新登录!', {time: 0, icon:2,offset: '30px'});
</script>
</body>

</html>